package cn.nawang.ebeim.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.nawang.ebeim.api.domain.CustomerEncryption;
import cn.nawang.ebeim.api.repository.CustomerEncryptionRepository;
import cn.nawang.ebeim.api.repository.impl.CustomerEncryptionRepositoryImpl;
import cn.nawang.ebeim.api.service.CustomerEncryptionService;

/**
 * @ClassName: CustomerEncryptionServiceImpl
 * @Description: TODO
 * @author fanyb
 * @date Oct 23, 2015 4:32:41 PM
 * @version v1.0
 */
@Service("customerEncryptionService")
public class CustomerEncryptionServiceImpl implements CustomerEncryptionService{

  @Autowired
  private CustomerEncryptionRepository customerEncryptionRepository;
  
  @Autowired
  private CustomerEncryptionRepositoryImpl customerEncryptionRepositoryImpl;
  
  @Override
  public void save(CustomerEncryption customerEncryption) {
    customerEncryptionRepository.save(customerEncryption);    
  }
  
  @Override
  public CustomerEncryption findByCustomerId(String customerId) {
    return customerEncryptionRepositoryImpl.findByCustomerId(customerId);
  }

}
